package com.prs.crm.service.ca.work;

import java.io.File;
import java.util.List;

import org.courser.ui.PaginationSupport;

import com.prs.crm.domain.ca.work.ArticleTypes;
import com.prs.crm.domain.ca.work.PurchaseApply;
import com.prs.crm.domain.cdxh.NewPlanOrder;
import com.prs.crm.domain.flow.FlowVerifyDetail;
import com.prs.crm.domain.flow.WorkFlowProcessNode;
import com.prs.crm.domain.flow.WorkFlowProcessNodeDetail;
import com.prs.crm.domain.hr.Person;
import com.prs.crm.domain.oa.Apply;
import com.prs.crm.service.BaseService;

public interface PurchaseApplyService extends BaseService<PurchaseApply>{
	List<PurchaseApply> getAllPurchaseApply();
	PurchaseApply getPurchaseApply(String pa_billNumber);
	void saveOrPurchaseApply(PurchaseApply purchaseApply);
//	public void savePurchaseApply(PurchaseApply purchaseApply,List<ArticleTypes> di_articletype,Integer[] productlist,
//			String[] di_articleName,String[] di_articleStandard,String[] di_articleNumber,
//			String[] di_articleUnit,String[] di_articleUnivalence,String[] prototalPrices);
	@SuppressWarnings("unchecked")
	PaginationSupport  listFlowTask(Class cls, PaginationSupport page,Person person);
	void execute(WorkFlowProcessNode node,FlowVerifyDetail detail,PurchaseApply entity,Person executor);
	public void saveApply(PurchaseApply purchaseApply,File file,String fileName);
}
